<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="com.wonders.ips.sysadmin.AdminMenu" %>

<%
String[] purviews = request.getParameterValues("purview");

String puv = "";
for (int i=0;i<purviews.length;i++) {
  if (i==purviews.length-1)
    puv += purviews[i];
  else
    puv += purviews[i] + ",";
}

AdminMenu menu = new AdminMenu();
String menu_ids = menu.processPurviews(purviews);

//out.print(puv + "<br>");
//out.print(menu_ids + "<br>");
%>

<script language="javascript">
  window.opener.document.form1.purview.value = "<%=puv%>";
  window.opener.document.form1.menu_ids.value = "<%=menu_ids%>";
  window.close();
</script>